/*
 * Copyright 2008-2009 ArtisanLogic.com.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.artisanlogic.jingo.assembler;

import java.net.URL;

// =====================================================================================================================
// UrlMappingStrategy.java                                                                       Created on Jan 27, 2009
// ---------------------------------------------------------------------------------------------------------------------
/**
 * This interface is a behavior specifications for implementations of strategies for mapping from Dependency instances 
 * to universal resource locators.
 * 
 * @author john@artisanlogic.com
 * @author sean@artisanlogic.com
 * @since 0.9-Beta
 */
// =====================================================================================================================
public interface UrlMappingStrategy {
	
  // -------------------------------------------------------------------------------------------------------------------
  // public abstract methods
  // -------------------------------------------------------------------------------------------------------------------
	
	/**
	 * This method identifies the appropriate URL given a Dependency instance.
	 * 
	 * @param dependency This parameter holds the Dependency instance for which to determine the URL.
	 * @return This method returns the appropriate URL for the given Dependency instance.
	 */
	URL map(Dependency dependency);
	
}
